//
//  downLoadViewController.m
//  One Construction
//
//  Created by apple on 2019/9/11.
//  Copyright © 2019 apple. All rights reserved.
//

#import "downLoadViewController.h"

@interface downLoadViewController ()

@end

@implementation downLoadViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor colorWithRed:240/255.0 green:240/255.0 blue:240/255.0 alpha:1.0];
    self.navigationItem.title  = @"课程如何下载？";
    
    UIView *firstView = [[UIView alloc]initWithFrame:CGRectMake(10, AppNavitionHright+10, ScreenWidth-20, 49)];
    [self.view addSubview:firstView];
    firstView.backgroundColor = [UIColor whiteColor];
    firstView.layer.backgroundColor = [UIColor colorWithRed:255/255.0 green:255/255.0 blue:255/255.0 alpha:1.0].CGColor;
    firstView.layer.cornerRadius = 10;
    firstView.layer.shadowColor = [UIColor colorWithRed:0/255.0 green:0/255.0 blue:0/255.0 alpha:0.05].CGColor;
    firstView.layer.shadowOffset = CGSizeMake(0,1);
    firstView.layer.shadowOpacity = 1;
    firstView.layer.shadowRadius = 2;
    UIImageView *firstImgView = [[UIImageView alloc]init];
    firstImgView.image = [UIImage imageNamed:@"download"];
    [firstView addSubview:firstImgView];
    [firstImgView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_offset(10);
         make.top.mas_offset(18);
        make.width.height.mas_equalTo(18);
    }];
    myLable *firstLbale =[[myLable alloc]init];
    [firstView addSubview:firstLbale];
    [firstLbale mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(firstImgView.mas_right).mas_offset(4);
        make.top.mas_offset(18);
        make.height.mas_equalTo(18);
        make.width.mas_equalTo(ScreenWidth);
        
    }];
    [firstLbale setLabletextColor:[UIColor blackColor] Text:@"课程什么时间可以下载？" TextFont:18];
    
    
    UIView *secondView = [[UIView alloc]initWithFrame:CGRectMake(10, firstView.frame.origin.y+firstView.frame.size.height+10, ScreenWidth-20, 142)];
    [self.view addSubview:secondView];
    secondView.backgroundColor = [UIColor whiteColor];
    secondView.layer.backgroundColor = [UIColor colorWithRed:255/255.0 green:255/255.0 blue:255/255.0 alpha:1.0].CGColor;
    secondView.layer.cornerRadius = 10;
    secondView.layer.shadowColor = [UIColor colorWithRed:0/255.0 green:0/255.0 blue:0/255.0 alpha:0.05].CGColor;
    secondView.layer.shadowOffset = CGSizeMake(0,1);
    secondView.layer.shadowOpacity = 1;
    secondView.layer.shadowRadius = 2;
    
    UIImageView *secondImgView = [[UIImageView alloc]init];
    secondImgView.image = [UIImage imageNamed:@"download1"];
    [secondView addSubview:secondImgView];
    [secondImgView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_offset(10);
        make.top.mas_offset(18);
        make.width.height.mas_equalTo(18);
    }];
    myLable *secondLbale =[[myLable alloc]init];
    [secondView addSubview:secondLbale];
    [secondLbale mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(firstImgView.mas_right).mas_offset(4);
        make.top.mas_offset(18);
        make.height.mas_equalTo(18);
        make.width.mas_equalTo(ScreenWidth);
        
    }];
    [secondLbale setLabletextColor:[UIColor blackColor] Text:@"面授课一周左右" TextFont:18];
    
    
    
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
